package descentFly.app.managePanel
{
	import UIFree.abox.uif_imageSource;
	import UIFree.controls.base.uif_source;
	import UIFree.uif_component;
	
	import descentFly.app.df_component;
	import descentFly.app.df_images;
	import descentFly.app.df_panel;
	import descentFly.away3D4.df_loadSection;
	import descentFly.server.df_servers;
	
	import flash.display.Bitmap;
	import flash.geom.Point;
	import flash.geom.Rectangle;
	
	public class df_miniHelp extends df_panel {
		public static var SIZE: Point = new Point(200, 90);
		private var _image: Bitmap;
		public function df_miniHelp(parent:uif_component, ax:int=0, ay:int=0) {
			super(parent, ax, ay, SIZE.x, SIZE.y, 'info');
		}
		
		override protected function createComponents(layer:df_component, inner:Rectangle):void {
			var ls: df_loadSection = new df_loadSection()
			_image = ls.loadBmp(df_servers.IMAGES_URL + locale.LANG + '/' + df_images.KEYBOARD, true);
			ls.endSection(function(): void {
				var inner: Rectangle = getInner();
				_image.x = inner.x + (inner.width - _image.width) / 2;
				_image.y = inner.y + (inner.height - _image.height) / 2;
				addChild(_image);
			});
		}
	}
}